import java.util.Scanner;
/**
 * A program to input the user's name and then greet the user.
 * @author Amrita Mukherjee
 * @version 01/09/2012
 */
public class InputExample2
{
public static void main(String[] args)
    {
        // Create a Scanner object called "keyboard"
       Scanner keyboard = new Scanner(System.in);
       
       //Prompt uder for input
       //notice that print is used instead of println
       //how is print different from println? (experiment and tri each)
       System.out.print("Enter your name: ");
       
       //Input the users responce (get a line of output)
       String name = keyboard.nextLine();
       
       //Now, print what the user enteres
       //Note that + is used to join strings together.
       System.out.println("Hi " + name + ", nice to meet you!");;
    }
}
/*
 * Mu Output:
 * Enter your name: Amrita
Hi Amrita, nice to meet you!

 */